// "use client"
import type { Metadata } from "next";
import { Inter } from "next/font/google";
import "./globals.css";
import React from "react";

const inter = Inter({ subsets: ["latin"] });
// 这个全局得共享布局是必须的,UI中必须包含html标签和body标签，适用于所有得路由

export const metadata: Metadata = {
  title: "Pages",
  description: "这是布局下的元数据"
};

export default function RootLayout({
    children,
}: Readonly<{
  children: React.ReactNode
}>) {
  return (
    <html lang="en">
      <body className={inter.className}>
        <h1 style={{color: "greenyellow", fontSize: "60px"}}>this is root layout，in this page， html and body tag is required</h1>
        {children}
      </body>
    </html>
  );
}
